package edu.utn.tacs.grupouno.ui.client;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.TextBox;

public class NumberButton extends Button {

	public NumberButton(final int number, final TextBox display) {
		super(String.valueOf(number), new ClickHandler() {
			public void onClick(ClickEvent arg0) {
				display.setText(display.getText()+number);
			}
		});
	}
}
